type LogType = Extract<keyof Console, 'log' | 'warn' | 'error'>;


const LogPrefix = 'Xg-Player>>>';
export function log<T = string>(msg: T, type: LogType = 'log') {
  console[type](LogPrefix, msg);
}
